package com.fun_ordering.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FoLossExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FoLossExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLoIdIsNull() {
            addCriterion("lo_id is null");
            return (Criteria) this;
        }

        public Criteria andLoIdIsNotNull() {
            addCriterion("lo_id is not null");
            return (Criteria) this;
        }

        public Criteria andLoIdEqualTo(Integer value) {
            addCriterion("lo_id =", value, "loId");
            return (Criteria) this;
        }

        public Criteria andLoIdNotEqualTo(Integer value) {
            addCriterion("lo_id <>", value, "loId");
            return (Criteria) this;
        }

        public Criteria andLoIdGreaterThan(Integer value) {
            addCriterion("lo_id >", value, "loId");
            return (Criteria) this;
        }

        public Criteria andLoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("lo_id >=", value, "loId");
            return (Criteria) this;
        }

        public Criteria andLoIdLessThan(Integer value) {
            addCriterion("lo_id <", value, "loId");
            return (Criteria) this;
        }

        public Criteria andLoIdLessThanOrEqualTo(Integer value) {
            addCriterion("lo_id <=", value, "loId");
            return (Criteria) this;
        }

        public Criteria andLoIdIn(List<Integer> values) {
            addCriterion("lo_id in", values, "loId");
            return (Criteria) this;
        }

        public Criteria andLoIdNotIn(List<Integer> values) {
            addCriterion("lo_id not in", values, "loId");
            return (Criteria) this;
        }

        public Criteria andLoIdBetween(Integer value1, Integer value2) {
            addCriterion("lo_id between", value1, value2, "loId");
            return (Criteria) this;
        }

        public Criteria andLoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("lo_id not between", value1, value2, "loId");
            return (Criteria) this;
        }

        public Criteria andMaterialNameIsNull() {
            addCriterion("material_name is null");
            return (Criteria) this;
        }

        public Criteria andMaterialNameIsNotNull() {
            addCriterion("material_name is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialNameEqualTo(String value) {
            addCriterion("material_name =", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameNotEqualTo(String value) {
            addCriterion("material_name <>", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameGreaterThan(String value) {
            addCriterion("material_name >", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameGreaterThanOrEqualTo(String value) {
            addCriterion("material_name >=", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameLessThan(String value) {
            addCriterion("material_name <", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameLessThanOrEqualTo(String value) {
            addCriterion("material_name <=", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameLike(String value) {
            addCriterion("material_name like", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameNotLike(String value) {
            addCriterion("material_name not like", value, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameIn(List<String> values) {
            addCriterion("material_name in", values, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameNotIn(List<String> values) {
            addCriterion("material_name not in", values, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameBetween(String value1, String value2) {
            addCriterion("material_name between", value1, value2, "materialName");
            return (Criteria) this;
        }

        public Criteria andMaterialNameNotBetween(String value1, String value2) {
            addCriterion("material_name not between", value1, value2, "materialName");
            return (Criteria) this;
        }

        public Criteria andLoNumberIsNull() {
            addCriterion("lo_number is null");
            return (Criteria) this;
        }

        public Criteria andLoNumberIsNotNull() {
            addCriterion("lo_number is not null");
            return (Criteria) this;
        }

        public Criteria andLoNumberEqualTo(BigDecimal value) {
            addCriterion("lo_number =", value, "loNumber");
            return (Criteria) this;
        }

        public Criteria andLoNumberNotEqualTo(BigDecimal value) {
            addCriterion("lo_number <>", value, "loNumber");
            return (Criteria) this;
        }

        public Criteria andLoNumberGreaterThan(BigDecimal value) {
            addCriterion("lo_number >", value, "loNumber");
            return (Criteria) this;
        }

        public Criteria andLoNumberGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("lo_number >=", value, "loNumber");
            return (Criteria) this;
        }

        public Criteria andLoNumberLessThan(BigDecimal value) {
            addCriterion("lo_number <", value, "loNumber");
            return (Criteria) this;
        }

        public Criteria andLoNumberLessThanOrEqualTo(BigDecimal value) {
            addCriterion("lo_number <=", value, "loNumber");
            return (Criteria) this;
        }

        public Criteria andLoNumberIn(List<BigDecimal> values) {
            addCriterion("lo_number in", values, "loNumber");
            return (Criteria) this;
        }

        public Criteria andLoNumberNotIn(List<BigDecimal> values) {
            addCriterion("lo_number not in", values, "loNumber");
            return (Criteria) this;
        }

        public Criteria andLoNumberBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("lo_number between", value1, value2, "loNumber");
            return (Criteria) this;
        }

        public Criteria andLoNumberNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("lo_number not between", value1, value2, "loNumber");
            return (Criteria) this;
        }

        public Criteria andLoTimeIsNull() {
            addCriterion("lo_time is null");
            return (Criteria) this;
        }

        public Criteria andLoTimeIsNotNull() {
            addCriterion("lo_time is not null");
            return (Criteria) this;
        }

        public Criteria andLoTimeEqualTo(Date value) {
            addCriterion("lo_time =", value, "loTime");
            return (Criteria) this;
        }

        public Criteria andLoTimeNotEqualTo(Date value) {
            addCriterion("lo_time <>", value, "loTime");
            return (Criteria) this;
        }

        public Criteria andLoTimeGreaterThan(Date value) {
            addCriterion("lo_time >", value, "loTime");
            return (Criteria) this;
        }

        public Criteria andLoTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("lo_time >=", value, "loTime");
            return (Criteria) this;
        }

        public Criteria andLoTimeLessThan(Date value) {
            addCriterion("lo_time <", value, "loTime");
            return (Criteria) this;
        }

        public Criteria andLoTimeLessThanOrEqualTo(Date value) {
            addCriterion("lo_time <=", value, "loTime");
            return (Criteria) this;
        }

        public Criteria andLoTimeIn(List<Date> values) {
            addCriterion("lo_time in", values, "loTime");
            return (Criteria) this;
        }

        public Criteria andLoTimeNotIn(List<Date> values) {
            addCriterion("lo_time not in", values, "loTime");
            return (Criteria) this;
        }

        public Criteria andLoTimeBetween(Date value1, Date value2) {
            addCriterion("lo_time between", value1, value2, "loTime");
            return (Criteria) this;
        }

        public Criteria andLoTimeNotBetween(Date value1, Date value2) {
            addCriterion("lo_time not between", value1, value2, "loTime");
            return (Criteria) this;
        }

        public Criteria andEmpNameIsNull() {
            addCriterion("emp_name is null");
            return (Criteria) this;
        }

        public Criteria andEmpNameIsNotNull() {
            addCriterion("emp_name is not null");
            return (Criteria) this;
        }

        public Criteria andEmpNameEqualTo(String value) {
            addCriterion("emp_name =", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotEqualTo(String value) {
            addCriterion("emp_name <>", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameGreaterThan(String value) {
            addCriterion("emp_name >", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameGreaterThanOrEqualTo(String value) {
            addCriterion("emp_name >=", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameLessThan(String value) {
            addCriterion("emp_name <", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameLessThanOrEqualTo(String value) {
            addCriterion("emp_name <=", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameLike(String value) {
            addCriterion("emp_name like", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotLike(String value) {
            addCriterion("emp_name not like", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameIn(List<String> values) {
            addCriterion("emp_name in", values, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotIn(List<String> values) {
            addCriterion("emp_name not in", values, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameBetween(String value1, String value2) {
            addCriterion("emp_name between", value1, value2, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotBetween(String value1, String value2) {
            addCriterion("emp_name not between", value1, value2, "empName");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(Integer value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(Integer value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(Integer value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(Integer value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<Integer> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<Integer> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}